#include <stdio.h>
int main()
{
    int n = 0;
    int arr[50000] = {0};
    int i = 0;
    int c = 0;
    int j = 0;
    int count = 0;
    
    scanf ("%d",&n);
    for(i = 0;i<n;i++)
    {
        scanf ("%d",&arr[i]);
    }
    
    for(i = 0;i<n;i++)
    {
     count = 0;   
        
        for(j = 0;j < i ;j++)
        {
            if(arr[i] == arr[j])
            {
                count = 1;

            }
        }
        if(count == 0)
      {
         printf ("%d ",arr[i]);    
      }  
    }
    
    
    return 0;
    
}